import { Component, Input } from '@angular/core';
import { NavController } from 'ionic-angular';


/**
 * Generated class for the MenuComponent component.
 *
 * See https://angular.io/api/core/Component for more info on Angular
 * Components.
 */

@Component({
  selector: 'menu',
  templateUrl: 'menu.html'
})
export class MenuComponent {
  page = {
    "mill": "MillPage",
    "chart": "EchartsPage"
  }
  @Input() myContent: any;
  constructor(private navCtrl: NavController) {

  }
  openPage(str) {
    this.navCtrl.push(str);
  }
}
